﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace PIM_ATE
{
    public partial class FrmTime : Form
    {
        public event EventHandler evt_OK_handle;
        public event EventHandler evt_Cancel_handle;
        public FrmTime(string s)
        {
            InitializeComponent();
            lbl_message.Text= s;
        }
        public FrmTime()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (this.evt_OK_handle != null)
                this.evt_OK_handle(null, null);
        }
        protected override void OnShown(EventArgs e)
        {
            base.OnShown(e);
            button1.Focus();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            if (this.evt_Cancel_handle != null)
                this.evt_Cancel_handle(null, null);
        }

        private void FrmTime_Load(object sender, EventArgs e)
        {

        }
    }
}
